﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="List.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Product.Market.List"
    Title="卖场管理" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/Controls/Category.css" />
    <script type="text/javascript" src="/cellula_client/Controls/CategoryFunc.js"></script>
    <script type="text/javascript" src="/jskit.org/Server/JskitXmlHttp.js"></script>
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/Controls/JskitFileUpload.css" />
    <script type="text/javascript" src="/Cellula_client/Controls/JskitFileUpload.js"></script>
    <script type="text/javascript">
        var jfu = new JskitFileUpload("jfu");
        jfu.setModeName("<%=ModelName %>");
        jfu.setFilePattern(".jpg|.png|.jpeg|.bmp|.gif");
        function showPicPanel(sender){
            jfu.setModelKey(sender.getAttribute("pid"));
            jfu.display();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
    卖场店铺管理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <asp:HiddenField runat="server" ID="hid_TypeKey" />
    <asp:Label runat="server" ID="lab_CategoryData"></asp:Label>
    <div>
        <asp:Label runat="server" ID="lab_info"></asp:Label>
    </div>
    <div class="action_bar">
        <asp:Button ID="btn_type_add" runat="server" Text="增加" OnClick="btn_type_add_Click" />
        <asp:Button ID="btn_type_update" runat="server" Text="修改"
            OnClientClick="return acu.gv.checkCbxModify('cbx_category');" 
            OnClick="btn_type_update_Click" />
        <asp:Button ID="btn_type_delete" runat="server" Text="删除"
            OnClientClick="return acu.gv.checkCbxDelete('cbx_category');" 
            OnClick="btn_type_delete_Click" />
    </div>
    <fieldset>
        <legend>分类列表</legend>
        <asp:Label runat="server" ID="lab_List"></asp:Label>
        <div id="CategoryGridviewBox"></div>
        <script type="text/javascript">
            var cf = new CategoryFunc("cf");
            cf.setTypeKey($("#"+fixId("hid_TypeKey")).value);
            if(typeof(CategoryData)=="object"){
                cf.displayGridView("CategoryGridviewBox",CategoryData);
            }
        </script>
    </fieldset>
</asp:Content>
